//
//  NYOPMovieListCell.m
//  Kokozu
//
//  Created by Bismarrck on 11-7-16.
//  Copyright 2011年 Tsinghua University. All rights reserved.
//

#import "NYOPMovieListCell.h"

@implementation NYOPMovieListCell

- (void)setMoviePoster:(UIImage *)aMoviePoster
{
    [super setMoviePoster:aMoviePoster];
    moviePosterView.image = aMoviePoster;
}

- (void)setMovieName:(NSString *)aMovieName
{
    [super setMovieName:aMovieName];
    movieNameLabel.text = aMovieName;
}

- (void)setMovieAvgPrice:(int)theMovieAvgPrice
{
    [super setMovieAvgPrice:theMovieAvgPrice];
    movieAvgPriceLabel.text = [NSString stringWithFormat:@"%d %d", theMovieAvgPrice/10, theMovieAvgPrice%10];
}

- (void)dealloc
{
    [movieNameLabel release];
    [moviePosterView release];
    [movieAvgPriceLabel release];
    
    [super dealloc];
}

@end

@implementation NYOPMovieListCellExpanded

- (void)setMovieFullPoster:(UIImage *)aMovieFullPoster
{
    [super setMovieFullPoster:aMovieFullPoster];
    movieFullPosterView.image = aMovieFullPoster;
}

- (void)dealloc
{
    [movieFullPosterView release];
    [super dealloc];
}

@end
